@REM  $Id: 02-get-data.bat 106 2008-07-13 12:09:08Z honghunter $

@echo off & color 02

if "%1"=="sub1" goto sub1

if "%BATCH_WS%"=="" call env_setting.bat


echo.>%CACHE_DIR%\data.txt

:main

for /L %%A IN (1,1,%CHECK_PAGE%) DO call %BATCH_WS%\02-get-data.bat sub1 %%A


goto :eof

:sub1

SET PAGEID=%2
echo process page=%PAGEID%
call sub-list2url.bat %2
sleep 3s

goto :eof

:eof
